import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      name: "head",
      redirect: "/index",
      component: () => import("@/views/index.vue"),
      children: [
        // 首页
        {
          path: "/index",
          name: "index",
          component: () => import("@/views/index/index.vue"),
        },
      ],
    },
  ],
});
export default router